package com.bupt.dto.network;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode
@Data
public class Node implements Serializable {
    private static final long serialVersionUID = -2689078848951715139L;
    private String id;
    private String name;
    double longitude;
    double latitude;

    public Node() {
    }

    public Node(String id, String name, double longitude, double latitude) {
        this.id = id;
        this.name = name;
        this.longitude = longitude;
        this.latitude=latitude;
    }

    public void update(String id,String name,double longitude,double latitude){
        this.id=id;
        this.name=name;
        this.longitude=longitude;
        this.latitude=latitude;
    }
}

